﻿<%@ Page Language="C#" MasterPageFile="~/Template/List.master" AutoEventWireup="true"
    CodeFile="OtherMemberTrainDetailStat.aspx.cs" Inherits="Page_OtherMemberTrainDetailStat" Title="本单位其他学员学习情况汇总表" %>

<%@ Register Src="~/Control/ListHeader.ascx" TagName="ListHeader" TagPrefix="wsc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">

    

    <script type="text/javascript" src="../Js/jquery-1.2.6.min.js"></script>

    <script type="text/javascript" src="../Js/jquery-1.2.6-vsdoc.js"></script>

    <script type="text/javascript">

        function advancedSearchClick() {
            if (window.event.keyCode == 13) {
                document.getElementById("<%=btnAdvancedSearch.ClientID %>").click();
            }
        }
        function searchClick() {
            if (window.event.keyCode == 13) {
                document.getElementById("<%=btnSearch.ClientID %>").click();
            }
        }

        function clearText(control, text) {
            if (control.value == text)
                control.innerText = "";
        }
        function insertText(control, text) {
            if (control.value == "")
                control.innerText = text;
        }
        function stopBubble(e, id) {
            var e = e ? e : window.event;
            if (window.event) { // IE   
                e.cancelBubble = true;
            } else { // FF   
                //e.preventDefault();    
                e.stopPropagation();
            }
            OpenDetail('ClassMemberList.aspx?ClassID=' + id + '&Nocache=' + Math.random());
        }
        function turnBack() {
            window.location.href = "MySelectClassList.aspx?Nocache=" + Math.random();
        } 
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="TitlePlaceHolder" runat="Server">
    本单位其他学员学习情况
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ListToolBarPlaceHolder" runat="Server">
    <div style="display: none">
        <asp:Button ID="btnRefresh" runat="server" OnClick="btnRefresh_Click" />
    </div>
    <table cellspacing="2" cellpadding="0" border="0" width="100%">
        <tr>
            <td class="ToolMenu" width="60">
                <div class="Normal" oldclass="Normal" onmouseover="OverChangeClass(this);" onmouseout="ReturnClass(this)"
                    onclick="turnBack();">
                    <span>
                        <img src="../Images/Icon/Action/undo1.gif" alt="" /></span><span>返回</span>
                </div>
            </td>
            <td class="Fg">
                <img src="../Images/FgLine.gif" alt="" />
            </td>
            <td>
                <table cellspacing="0" cellpadding="0" border="0" class="TableSearch" width="100%">
                    <tr>
                        <td width="100%">
                            <asp:TextBox ID="tbSearch" runat="server" CssClass="TextBox"></asp:TextBox>
                        </td>
                        <td width="10">
                            <asp:LinkButton ID="btnSearch" runat="server" OnClick="btnSearch_Click"><img alt="<%=SearchDefaultText %>" src="../Images/Icon/Icon-Search.png" align="absmiddle" style="cursor: pointer;" /></asp:LinkButton>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="AdvancedSearchPlaceHolder" runat="server">
    <table cellspacing="4" cellpadding="0" border="0" width="100%">
        <tr>
            <td width="60">
                班级名称
            </td>
            <td>
                <asp:TextBox ID="tbSearchDept" runat="server" class="Textbox01" Width="100%"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td width="60">
                岗位
            </td>
            <td>
                <asp:TextBox ID="tbSearchStation" runat="server" class="Textbox01" Width="100%"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td colspan="2" align="right">
                <asp:Button ID="btnAdvancedSearch" runat="server" CssClass="Button01" Text="查询" OnClientClick=""
                    OnClick="btnAdvancedSearch_Click" />
            </td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ListHeaderPlaceHolder" runat="Server">
    <table cellspacing="0" cellpadding="0" border="0" class="PageGridHeader" width="100%">
        <wsc:ListHeader ID="lhUserDisplayName" runat="server" Title="&nbsp;姓名" Width="100"
            OrderColumn="FullName" />
        <wsc:ListHeader ID="lhDuty" runat="server" Title="&nbsp;职务"
            OrderColumn="PositionLevel" />
        <wsc:ListHeader ID="lhYearScore" runat="server" Title="&nbsp;本年学分" Width="80" FirstOrderDirection="DESC"  />
        <wsc:ListHeader ID="lhTotalScore" runat="server" Title="&nbsp;所有学分" Width="80" />
    </table>
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="ListContentPlaceHolder" runat="Server">
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="MainInfolist">
        <asp:Repeater ID="rptUserInfo" runat="server" OnItemDataBound="rptUserInfo_ItemDataBound">
            <ItemTemplate>
                <tr id="TableRow_<%# Container.ItemIndex%>" style="cursor: hand; text-align: left;"
                    class="Normal" oldclass="Normal" onmouseover="OverChangeClass(this);" onmouseout="ReturnClass(this)"
                    onclick="ClickChangeClass(this);OpenDetail('TrainDetailStatDetail.aspx?MemberID=<%# DataBinder.Eval(Container.DataItem, "ID")%>&Nocache=' + Math.random());">
                    <td style="display: none;">
                        <%# DataBinder.Eval(Container.DataItem,"ID") %>
                    </td>
                    <td width="100">
                        <asp:Label runat="server" ID="lFullName" Text='<%# DataBinder.Eval(Container.DataItem, "FullName")%>' ></asp:Label>
                    </td>
                    <td>
                        <%# DataBinder.Eval(Container.DataItem, "PositionLevel")%>
                    </td>
                    <td width="80">
                        <%# DataBinder.Eval(Container.DataItem, "YearScore")%>
                    </td>
                    <td width="80">
                        <%# DataBinder.Eval(Container.DataItem, "TotalScore")%>
                    </td>
                </tr>
            </ItemTemplate>
        </asp:Repeater>
    </table>
</asp:Content>
